<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>03 JSX语法规则</title>
</head>

<style>
    .title {
        color: saddlebrown;
    }
</style>

<body>
    <div id="root"></div>
</body>

<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>

<script type="text/babel">
    const name = '名称'
    const data = "数据"


    const VDOM = (
        <div>
            <h1 className="title">
                <span style={{ color: 'red', fontSize: '66px' }}>{data.toLocaleLowerCase()}</span>
            </h1>

            <input type="text" value={name} readOnly />
        </div>
    )

    const root = ReactDOM.createRoot(document.getElementById('root'))
    root.render(VDOM)
</script>

</html>